﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Micronet.OpenWeb.Common;
using Micronet.OpenWeb.Utils;
using Micronet.OpenWeb.Com.BLL;
using Micronet.OpenWeb.Data;
using Micronet.OpenWeb.Entity;

namespace Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Forum
{
    public partial class ForumThreadsEdit : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //OwForumThreadsEntity ed = new OwForumThreadsEntity();

            //OwForumThreadsDAL a = new OwForumThreadsDAL();

            //foreach (var obj in OwForumThreadsBLL.OwGetAll(null, null, null, null))
            //{
            //    a.OwDelete(obj);
            //}

            //Response.Write(OwForumThreadsBLL.OwGetAll(null, null, null, null).Count);

            if (OwConstants.QueryString.ID.OwQsIsExist())
            {
                ForumThreadsEditDV.DefaultMode = DetailsViewMode.Edit;
            }
            else
            {
                ForumThreadsEditDV.DefaultMode = DetailsViewMode.Insert;

            }
        }
    }
}